package com.lichuang.dedao.curriculum.service;

import com.lichuang.dedao.curriculum.entity.CurriculumSection;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-18
 */
public interface ICurriculumSectionService extends IService<CurriculumSection> {

    /**
     * 通过章id查课程节
     * @param chapterId
     * @return
     */
    List<CurriculumSection> getSectionByChapterId(@Param("chapterId")Integer chapterId);

    /**
     * 更改课程节状态通过id
     * @param id
     * @return
     */
    Integer updateSectionStatusById(Integer id,Integer status);



}
